/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2019-2023. All rights reserved.
 * Description: when uncorrected patrol scrub error happens, isolate
 * page but do not kill related processes
 * Author: Lv Ying
 * Create: 2019-06-18
 */

#ifndef _EULEROS_UC_PS_MEM_ISOLATE_H
#define _EULEROS_UC_PS_MEM_ISOLATE_H

#ifdef CONFIG_EULEROS_RAS_UC_PATROL_SCRUB_MEM_ISOLATE
void isolate_uncorrected_patrol_scrub_error(
		const struct cper_sec_mem_err *mem_err,
		int *flags,
		int sec_sev);
#else
static inline int isolate_uncorrected_patrol_scrub_error(
		const struct cper_sec_mem_err *mem_err,
		int *flags,
		int sec_sev)
{
	return 0;
}
#endif /* CONFIG_EULEROS_RAS_UC_PATROL_SCRUB_MEM_ISOLATE */
#endif /* _EULEROS_UC_PS_MEM_ISOLATE_H */
